<?php
/**
 * User: UserXP
 * Date: 4/5/12
 * Time: 8:47 PM
 */
class AddRoleForm extends CFormModel
{
    public $name;
    public $type;
    public $description;
    public $bizrule;
    public $data;

    public $parents;

    public $children;

    public function init(){
        $this->type = 0;
    }
    public function rules(){
        return array(
            array('name,type','required'),
        );
    }

    public function attributeLabels(){
        return array(
            'name'=>'Tên',
            'type'=>'Kiểu',
            'description'=>'Miêu tả',
            'bizrule'=>'Bizrule',
            'data'=>'Dữ liệu',
            'parents'=>'Cấp trên',
            'children'=>'Cấp dưới'
        );
    }
}
